package com.robusta.app.web.controller;

import com.robusta.app.web.model.UploadViewModel;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("home")
public class HomePageController {

    public HomePageController() {
    }

    @RequestMapping(produces = MediaType.TEXT_HTML_VALUE, method = RequestMethod.GET)
    public String displayHomePage(ModelMap modelMap) {
        modelMap.addAttribute("uploadModel", new UploadViewModel());
        return "home";
    }
}
